package com.aya.mapper.thread;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Service;
@Service
public class BusinessListener implements ApplicationListener<BusinessEvent> {
    Logger logger = LoggerFactory.getLogger(SimpleThread.class);
    @Override
    public void onApplicationEvent(BusinessEvent event) {
        logger.info("BusinessEvent:"+event.getSource());
    }
}
